package com.baohulu.baohulu.base;

import android.util.Log;

import org.json.JSONArray;
import org.json.JSONObject;

/**
 * HTTP 响应回调接口
 * <p>
 * Created by wenhaiz on 2018/3/18.
 */

public abstract class BaseResponseCallback {
    public abstract void onStart();

    public void onCanceled() { }

    public void onResponse(String bodyString) {
        Log.i("respone", "onResponse: " + bodyString);
    }

    public void onJsonObjectResponse(JSONObject jsonObject) { }

    public void onJsonArrayResponse(JSONArray jsonArray) { }

    public abstract void onFailure(String msg);
}
